/*-------------------------------------------------
 *
 * OrbitsWriter - An Offline Blog Writer
 *
 * Copyright (C) 2016  devbean@galaxyworld.org
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *-------------------------------------------------*/

#ifndef VISUALEDITOR_H
#define VISUALEDITOR_H

#include "visualeditor_p.h"

#include "core/core_commons.h"

#include <QTextEdit>

namespace Core
{

class VisualEditor : public QTextEdit
{
    Q_OBJECT
    DECLARE_PRIVATE(VisualEditor)

public:
    explicit VisualEditor(QWidget *parent = 0);
    ~VisualEditor();

    void setTextBold(bool setBold);
    void setTextItalic(bool setItalic);
    void setTextUnderline(bool setUnderline);
    void setTextStrikeOut(bool setStrikeOut);

signals:
    void fontChanged(const QFont &font);
    void colorChanged(const QColor &color);
    void alignmentChanged(Qt::Alignment &alignment);
}; // end of class Core::VisualEditor

} // end of namespace Core

#endif // VISUALEDITOR_H
